<?php

namespace app\enterprise\model\course;

use app\enterprise\model\User;
use app\model\TimeModel;

class Teacher extends TimeModel
{

    protected $table = 'sj_teacher';

    public function user()
    {
         return $this->belongsTo(User::class, 'creator_id', 'id');
    }
}